<script>
    $(document).ready(function() {
    $('#timepicker').datepicker({
        dateFormat: "yy-mm-dd"

    });
  });
      $(document).ready(function() {
    $('#timepicker1').datepicker({
        dateFormat: "yy-mm-dd"

    });
  });
</script>
<?php 
    $data = $this->data; 

?>
<div style="text-decoration: none;font-size: 108%;color: #262626;font-weight: bold;outline: none;">Danh sách feedback</div><p></p>

<form class="form-search" name="search_sukien">
    <input type="text" placeholder="Từ ngày" class="input-medium " id="timepicker" name="search">
    <input type="text" placeholder="Đến ngày" class="input-medium " id="timepicker1" name="search_end">

  <button type="submit" class="btn">Search</button>
</form>
<table style="text-align: center" class="table table-hover table-bordered">
    <tr>
        <th style="width:20px">STT</th>
        <th>Email</th>
        <th>Điện thoại</th>
        <th>Nội dung</th>
        <th>Thời điểm</th>

        <th style="width:20px">Xóa</th>      
    </tr>
    <?php $i=1; foreach($data as $item){ ?>
    <tr>
        <td style="width: 20px"> <?php echo $item['id'];?> </td>
        <td><?php echo $item['email'];?></td>
        <td><?php echo $item['phone'];?> </td>
        <td><?php echo $item['messager'];?> </td>
        <td><?php echo $item['timedate'];?> </td>

        <td><a href="/admin/feedback/del?id=<?php echo$item['id'];?>"><i  onclick="return confirm('Are you sure?')" class="icon-trash"></i></a></td>

    </tr>
     <?php $i++;} ?>
</table>
   
<?php  echo  $this->paginationControl($this->paginator, 'Sliding', 'note/pagination.phtml',$params=null); ?>
